package com.example.demo.model.vo;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * Created by 86151 on 2018/12/25.
 */
@Data
public class User {
    private Integer id;
    @NotBlank(message = "用户名称不能为空！")
    private String name;
    @NotNull(message = "年龄不能为空！")
    private Integer age;
}
